package com.syni.mdd.sjb.common.component.utils.feign.service.mddAll;

import com.syni.mdd.sjb.common.component.utils.feign.constants.Constants;
import com.syni.mdd.sjb.common.component.utils.common.utils.RpcResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = Constants.MDD_DSP_API,path = Constants.MDD_DSP_API_PATH)
@RequestMapping("/apiBusinessAuth")
public interface BusinessAuthRestService {

    @PostMapping("getBusinessAuth")
    RpcResponseVo getBusinessAuth(@RequestParam("businessId") Integer businessId);

    @GetMapping("/getBusinessAuthByLicenseName")
    RpcResponseVo getBusinessAuthByLicenseName(@RequestParam("licenseName") String licenseName);

    @GetMapping("/getBusinessAuthByLicenseNameAndPhone")
    RpcResponseVo getBusinessAuthByLicenseNameAndPhone(@RequestParam("licenseName") String licenseName,@RequestParam("phone") String phone);
    @GetMapping("/getUserClaimBusinessByUserIdPage")
    RpcResponseVo getUserClaimBusinessByUserIdPage(@RequestParam("userId") Integer userId,@RequestParam("pageNum") Integer pageNum,
                                                   @RequestParam("pageSize") Integer pageSize);

    @GetMapping("/getUserClaimBusinessByBusinessAuthIds")
    RpcResponseVo getUserClaimBusinessByBusinessAuthIds(@RequestParam("businessAuthIds") String businessAuthIds);

    @GetMapping("/getUserClaimBusinessByBusinessAuthId")
    RpcResponseVo getUserClaimBusinessByBusinessAuthId(@RequestParam("businessAuthId") Integer businessAuthId);

    @GetMapping("/getUserClaimBusinessByBusinessId")
    RpcResponseVo getUserClaimBusinessByBusinessId(@RequestParam("businessId") Integer businessId);

    @GetMapping("/getCertifiedStores")
    RpcResponseVo getCertifiedStores();


}
